projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eaa3329
)
gtk-demo: Only show non-symbolic icons in toolpalette
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 30 Jun 2014 17:28:46 +0000
(13:28 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 30 Jun 2014 17:28:46 +0000
(13:28 -0400)
Otherwise, we get every icon twice. To switch between symbolic
and non-symbolic icons, this css fragment comes in handy:
* { -gtk-icon-style: symbolic; }
demos/gtk-demo/toolpalette.c
patch
|
blob
|
history
diff --git
a/demos/gtk-demo/toolpalette.c
b/demos/gtk-demo/toolpalette.c
index 1f5bf9b59ce1a05a0963d9a394ebce90021360f7..f8d95732a7bf3c661e83e17c65d91db77d65fd82 100644
(file)
--- a/
demos/gtk-demo/toolpalette.c
+++ b/
demos/gtk-demo/toolpalette.c
@@
-668,7
+668,10
@@
load_icon_items (GtkToolPalette *palette)
GtkToolItem *item;
gchar *id = ll->data;
- if (g_strcmp0 (id, "emblem-desktop") == 0)
+ if (g_str_equal (id, "emblem-desktop"))
+ continue;
+
+ if (g_str_has_suffix (id, "-symbolic"))
continue;
g_message ("Got id '%s'", id);